package com.xiaobai.java_core.copy;

import java.io.Serializable;

/**
 * @Author 王天文
 * @Date 2025/1/5 15:55
 * @Description:
 */
public class Address implements Serializable, Cloneable {

    private static final long serialVersionUID = -2017435981055252655L;

    public Address(String city) {
        this.city = city;
    }

    private String city;

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Override
    protected Address clone() throws CloneNotSupportedException {
        return (Address) super.clone();
    }

    @Override
    public String toString() {
        return "Address{" +
                "city='" + city + '\'' +
                '}';
    }
}
